package com.xrh.xdemo.api.request.updateRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ModifyPasswordRequest {

   /**主键id */
	@ApiModelProperty("主键id")
	@NotNull(message = "主键id不能为空")
	private Long id;
		
	@ApiModelProperty("原密码")
	@NotBlank(message = "原密码不能为空")
	private String oldPassword;
	
	@ApiModelProperty("新密码")
	@NotBlank(message = "新密码不能为空")
	private String newPassword;
	
}
